# 文件的写

with open(r"F:\back\python\stu-ptthon-qianfeng\day07\b.txt", "a", encoding="utf-8") as f:
    f.writelines("sasasassa")

f1 = open(r"F:\back\python\stu-ptthon-qianfeng\day07\b.txt", "a", encoding="utf-8")
f.writelines("rrrrrrrrr")
# 刷新缓冲区可以直接将文件写入
f.flush()
# 关闭的时候也可以写入
f.close()





